package com.green.home.upms.biz.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author limingliang
 * @date 2024/3/8 15:10
 */
@RestController
public class TestController {

    @GetMapping("/index")
    @PreAuthorize("hasAuthority('app')")
    public String index() {
        return "hello word!";
    }
}
